
import 'package:json_annotation/json_annotation.dart';
import 'moto_detail.dart';
part 'moto_recoedg.dart';

@JsonSerializable()
class MotoRecord{

   int? id;
   int? user_id;
   String ?user_name;
   int ?plan_id;
   String ?plan_name;
   int ?ebike_id;
   String ?ebike_name;
   String ?ebike_sn_code;
   int ?ebike_type_id;
   String ?ebike_type_name;
   int ?progress;
   int ?status;
   String ?failure_reason;
   int ?retry_count;
   List<MotoDetail> ?detail;
   int ?updated_at;
  MotoRecord();



  factory MotoRecord.fromJson(Map<String, dynamic> json) =>
      _$MotoRecordFromJson(json);
  Map<String, dynamic> toJson() => _$MotoRecordToJson(this);
}